/**
 * Copyright (C), 2020, 安徽贝慕信息科技有限公司
 * FileName: ServiceResourceQuery
 * Author:   Allen
 * Date:     2020/8/1 21:32
 * Description: 服务资源信息入参
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bim.marvel.openapi.client.query;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 〈服务资源信息入参〉
 *
 * @author Allen
 * @date 2020/8/1
 * @since 1.0.0
 */
@Data
public class ServiceResourceQuery implements Serializable {
    /**
     * 服务ID
     */
    @ApiParam(value = "服务ID", name = "serviceId", example = "marvel-open-api", required = true)
    @NotEmpty
    private String serviceId;

    /**
     * 服务中文名称
     */
    @ApiParam(value = "服务中文名称", name = "serviceName", example = "开放平台服务", required = true)
    @NotEmpty
    private String serviceName;

    /**
     * 服务端口号
     */
    @ApiParam(value = "服务端口号", name = "servicePort", example = "9801")
    private String servicePort;

    /**
     * 服务上下文字路径
     */
    @ApiParam(value = "服务上下文字路径", name = "contextPath", example = "openapi")
    private String contextPath;

    /**
     * 服务资源信息描述
     */
    @ApiParam(value = "服务资源信息描述", name = "description", example = "用于第三方接入的开放平台服务")
    private String description;

    /**
     * 是否对外授权
     */
    @ApiParam(value = "是否对外授权", name = "authorization", example = "true")
    private Boolean authorization;

    /**
     * 排序
     */
    @ApiParam(value = "排序", name = "sort", example = "1")
    private Long sort;

}
